<% session[:ret_post] = session[:return_to] = nil %>
<% form_for(@post,:url=>{:action=>'create'}) do |p| %>
  <%= p.error_messages %>
  <%= p.hidden_field :category_id, :value => session[:category_id].to_i  %>
  <h1>Title</h1>
  <%= p.text_field :title, :class=>"textInput" %>
  <br/>
  <% if( is_admin(session[:user_id])) %>
    <h1>Sticky?</h1>
    <%= p.check_box :is_sticky %>
    <br/>
  <% else %>
    <%= p.hidden_field :is_sticky, :value => 0 %>
  <% end %>
  <h1>Post</h1>
  <%= p.text_area :body, :class=>"textInput" %>
  <br/>
  <span class="new_post_submit"><%= p.submit "Submit", :class=>"button" %></span>
<%  end %>